package com.example.graduation.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.graduation.entity.dto.MapDto;
import com.example.graduation.entity.pojo.Company;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;


/**
 * @author Jeffery
 */
@Mapper
public interface MapDtoMapper extends BaseMapper<MapDto> {

    /**
     * 检查有无简历
     *
     * @param userId 用户ID
     * @return MapDto.java
     */
    MapDto checkHasJianLi(String userId);

    /**
     * 校验HR是否认证
     *
     * @param userId hr_id
     * @return MapDto.java
     */
    MapDto checkHrIsAuth(String userId);

    /**
     * 校验HR是否注册
     *
     * @param email email
     * @return MapDto.java
     */
    MapDto checkHrIsRegister(String email);

    void testUpdateEach(List<Company> list);
}
